package com.gg.registration.vo.user;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.util.Objects;

@Data
public class UserAuthVo {

    //用户名字
    @TableField("name")
    private String name;

    /**
     * 证件类型
     */
    @TableField("certificates_type")
    private String certificatesType;

    /**
     * 证件编号
     */
    @TableField("certificates_no")
    private String certificatesNo;

    /**
     * 证件路径
     */
    @TableField("certificates_url")
    private String certificatesUrl;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCertificatesType() {
        return certificatesType;
    }

    public void setCertificatesType(String certificatesType) {
        this.certificatesType = certificatesType;
    }

    public String getCertificatesNo() {
        return certificatesNo;
    }

    public void setCertificatesNo(String certificatesNo) {
        this.certificatesNo = certificatesNo;
    }

    public String getCertificatesUrl() {
        return certificatesUrl;
    }

    public void setCertificatesUrl(String certificatesUrl) {
        this.certificatesUrl = certificatesUrl;
    }

    @Override
    public String toString() {
        return "UserAuthVo{" +
                "name='" + name + '\'' +
                ", certificatesType='" + certificatesType + '\'' +
                ", certificatesNo='" + certificatesNo + '\'' +
                ", certificatesUrl='" + certificatesUrl + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        UserAuthVo that = (UserAuthVo) o;
        return Objects.equals(name, that.name) &&
                Objects.equals(certificatesType, that.certificatesType) &&
                Objects.equals(certificatesNo, that.certificatesNo) &&
                Objects.equals(certificatesUrl, that.certificatesUrl);
    }

    @Override
    public int hashCode() {
        return Objects.hash(name, certificatesType, certificatesNo, certificatesUrl);
    }
}
